﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Entity.TEST.Web_ExceptionLog>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <table class="liebiao_table" cellspacing="1" cellpadding="3" width="100%">
        <tr>
            <th>
            </th>
            <th>
                ExceptionID
            </th>
            <th>
                FullInfo
            </th>
            <th>
                Senders
            </th>
            <th>
                HttpMethod
            </th>
            <th>
                OccurTime
            </th>
            <th>
                IsValid
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.ExceptionID }) %>
                |
                <%: Html.ActionLink("Details", "Details", new { id=item.ExceptionID })%>
                |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.ExceptionID })%>
            </td>
            <td>
                <%: item.ExceptionID %>
            </td>
            <td>
                <%: item.FullInfo %>
            </td>
            <td>
                <%: item.Senders %>
            </td>
            <td>
                <%: item.HttpMethod %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.OccurTime) %>
            </td>
            <td>
                <%: item.IsValid %>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>
    <script type="text/javascript">
        tablelist();
    </script>
</asp:Content>
